The impact of inheritance depth on maintenance tasks – Detailed description and evaluation of two experiment replications

نویسندگان

  • Barbara Unger
  • Lutz Prechelt
چکیده

Inheritance is one of the main concepts of object-oriented technology. It is claimed that the use of inheritance improves productivity and decreases development time. John Daly et al. reported on two experiments evaluating the effects of inheritance depth on program maintenance. They found that maintenance was performed significantly quicker for software using three levels of inheritance, compared to equivalent ‘flattened’ software without inheritance. A second experiment found that maintenance for software using five levels of inheritance tended to be slightly slower than for equivalent software without inheritance. We report on similar experiments on the same question. Our results contradict those mentioned above. Several crucial changes were made to the setup. In particular longer and more complex programs were used, an inheritance diagram was available to the subjects, and we used more and different kinds of maintenance tasks. Furthermore, our experiment design compares zero level, three level and five level inheritance directly in one experiment. The results suggest that there is a tendency that deeper inheritance may complicate program understanding. But the effect depends rather on other factors such as complexity of the program and type of maintenance task than on inheritance depth. We found a high correlation between maintenance time and the number of methods to trace to gain program understanding. Further work should be done to identify other influence factors.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Impact of rainfall on natural attenuation of diesel and waste oil within urban base transceiver stations

BACKGROUND AND OBJECTIVES: Very low grid power penetration in some urban areas has led to telecoms companies investing massively in the deployment of diesel generators (DGs). These deployments have led to diesel and waste oil spill at base transceiver station (BTS) sites during maintenance cycles, impacting the environment and human activities. The objective of this study is to...

متن کامل

A controlled experiment on inheritance depth as a cost factor for code maintenance

In two controlled experiments we compare the performance on code maintenance tasks for three equivalent programs with 0, 3, and 5 levels of inheritance. For the given tasks, which focus on understanding effort more than change effort, programs with less inheritance were faster to maintain. Daly et al. previously reported similar experiments on the same question with quite different results. The...

متن کامل

A Controlled Experiment on Inheritance Depth as a Cost Factor for Maintenance

In two controlled experiments we compare the performance on maintenance tasks for three equivalent programs with 0, 3, and 5 levels of inheritance. For the given tasks, which focus on understanding effort more than change effort, programs with less inheritance were faster to maintain. John Daly et al. previously reported on similar experiments on the same question with quite different results. ...

متن کامل

Answer to reviews of TSE # 110555 ( “ A Controlled Experiment on Inheritance

In two controlled experiments we compare the performance on code maintenance tasks for three equivalent programs with 0, 3, and 5 levels of inheritance. For the given tasks, which focus on understanding effort more than change effort, programs with less inheritance were faster to maintain. Daly et al. previously reported similar experiments on the same question with quite different results. The...

متن کامل

An Empirical Study Evaluating Depth of Inheritance on the Maintainability of Object Oriented Software

This empirical research was undertaken as part of a multi method programme of research to investigate unsupported claims made of object oriented technology A series of subject based laboratory experiments including an internal replication tested the e ect of inheritance depth on the maintainability of object oriented software Subjects were timed performing identical maintenance tasks on object ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1998